package com.hongyi.web.service.impl;


import com.hongyi.web.pojo.SysRole;
import com.hongyi.web.mapper.SysRoleMapper;
import com.hongyi.web.service.ISysRoleService;
import com.hongyi.web.vo.SysRoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * 角色 业务层处理
 *
 * @author ruoyi
 */
@Service
public class SysRoleServiceImpl implements ISysRoleService
{
    @Autowired
    private SysRoleMapper roleMapper;





    /**
     * 查询所有角色
     *
     * @return 角色列表
     */
    @Override
    public List<SysRole> selectRoleAll()
    {
        List<SysRole> sysRoles = roleMapper.selectRoleAll();
        return sysRoles;
    }

    @Override
    public List<Long> selectRoleListByUserId(Long userId) {
        return roleMapper.selectRoleListByUserId(userId);
    }
}
